import request from '@/utils/request'
// 列表
export function GetListAPI (params) {
  return request({
    url: '/system/converter-management/list',
    method: 'GET',
    params
  })
}

// 新增
export function AddDataAPI (data) {
  return request({
    url: '/system/converter-management/add',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI (data) {
  return request({
    url: '/system/converter-management/update',
    method: 'POST',
    data
  })
}

// 删除
export function DelDataAPI (data) {
  return request({
    url: '/system/converter-management/delete/' + data,
    method: 'delete'
  })
}

// 查看详情
export function GetDetailAPI (data) {
  return request({
    url: '/system/converter-management/view/' + data,
    method: 'GET'
  })
}

// 冻结
export function FrozenAPI (data) {
  return request({
    url: '/system/converter-management/frozen/' + data,
    method: 'GET'
  })
}

// 解冻
export function ThawAPI (data) {
  return request({
    url: '/system/converter-management/thaw/' + data,
    method: 'GET'
  })
}

// 撤销审核
export function RevokeAPI (data) {
  return request({
    url: '/system/converter-management/revoke/' + data,
    method: 'GET'
  })
}

// 提交审核
export function ReviewSubmitAPI (data) {
  return request({
    url: '/system/converter-management/reviewSubmit/' + data,
    method: 'GET'
  })
}

// 审核
export function ToExamineAPI (data) {
  return request({
    url: '/system/converter-management/converterReview',
    method: 'POST',
    data
  })
}